package com.qf;/*
 *徐韬
 *2021/10/25
 *14:22
 */

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class quartz01 implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("定时任务开启"+System.currentTimeMillis());
        System.out.println(jobExecutionContext.getJobDetail().getKey().getName());
        //获取定时任务的名字和分组
    }
}
